import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './styles/App.css'
import { Button } from 'antd-mobile'


import AppRoutes from './router';

function App() {
  const [count, setCount] = useState(0)

  return (
    <>
      <div>
        {/* 你可以在这里添加全局布局或共享组件 */}
        <AppRoutes />

        <a href="https://vite.dev" target="_blank">
          <img src={viteLogo} className="logo" alt="Vite logo" />
        </a>
        <a href="https://react.dev" target="_blank">
          <img src={reactLogo} className="logo react" alt="React logo" />
        </a>
      </div>
      <h1>Vite + React</h1>
      <Button color='primary' fill='solid' onClick={() => setCount((count) => count + 1)}>
        count is {count}
      </Button>


    </>
  )
}

export default App
